
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
        <script>
            $(document).ready(function() {
                var ws = new WebSocket('ws://localhost:8899');

                ws.onopen = function() {
                    console.log('Connected');
                    ws.send(JSON.stringify({event : "hej", hej : "kaninerna"}));
                };
                
                ws.onmessage = function(res) {
                    console.log(res.data);
                };
                
            });
        </script>
    </head>
    <body>
        <div>TODO write content</div>
    </body>
</html>
